using System;
using ns27;

namespace Triton.Game.Mapping
{
	[Attribute38("BoxDisk")]
	public class BoxDisk : MonoBehaviour
	{
		public enum State
		{
			LOADING,
			MAINMENU
		}

		public Box m_parent => method_3<Box>("m_parent");

		public BoxDiskStateInfo m_info => method_3<BoxDiskStateInfo>("m_info");

		public State m_state => method_2<State>("m_state");

		public BoxDisk(IntPtr address, string className)
			: base(address, className)
		{
		}

		public BoxDisk(IntPtr address)
			: this(address, "BoxDisk")
		{
		}

		public void SetParent(Box parent)
		{
			method_8("SetParent", parent);
		}

		public Box GetParent()
		{
			return method_14<Box>("GetParent", Array.Empty<object>());
		}

		public BoxDiskStateInfo GetInfo()
		{
			return method_14<BoxDiskStateInfo>("GetInfo", Array.Empty<object>());
		}

		public void SetInfo(BoxDiskStateInfo info)
		{
			method_8("SetInfo", info);
		}

		public bool ChangeState(State state)
		{
			return method_11<bool>("ChangeState", new object[1] { state });
		}

		public void UpdateState(State state)
		{
			method_8("UpdateState", state);
		}
	}
}
